package com.fsm.demo.entity.excelbo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "插入指定的列")
public class Demo3Bo {

    //将Java对象中指定的属性, 插入到Eexcel表格中的指定列(在Excel表格中进行列排序), 使用index属性指定列顺序。
    @ExcelProperty(value = "用户编号", index = 4)
    private Integer userId;

    @ExcelProperty(value = "姓名", index = 3)
    private String userName;

    @ExcelProperty(value = "性别", index = 2)
    private String gender;

    @ExcelProperty(value = "工资", index = 1)
    private Double salary;

    @ExcelProperty(value = "入职时间", index = 0)
    private Date hireDate;

}
